package com.baohua.model;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;

import org.codehaus.jackson.annotate.JsonIgnore;
import org.springframework.stereotype.Component;

/**
 * 订单头信息
 * @author Happy Everyday
 *
 */
@Component("orderHeader")
public class OrderHeader implements Serializable{
	
	private static final long serialVersionUID = 1L;
	private long orderHeaderId;		//订单头信息ID
	private String documentNumber;	//订单编号
	private String diningTableName;	//用餐餐桌
	private java.util.Date orderDate;//下单时间
	private double orderTotalPrice;	//订单总价（折扣前）
	private int amount;				//多少道菜
	private String attn;			//那位服务员
	private String deliveryAddress;	//送餐地址
	private String waiterNumber;	//服务员编号
	private long serviceType;		//服务类别
	private double actualTotalPrice;//实际订单价格（折扣后）
	private long orderCategory;		//订单种类
	private long orderStatus;		//订单状态
	private java.sql.Timestamp mealTime;//用餐时间
	private String remark;			//备注
	private long memberId;			//会员Id   
	private String memberName;		//会员名称
	private String memberNo;		//会员账号
	
	private Set<OrderDetails> orderdetails;//订单明细
	private Set<OrdDinTabRel> ordDinTabRel;//订单餐桌关系
	
	public Set<OrderDetails> getOrderdetails() {
		return orderdetails;
	}
	public String getMemberNo() {
		return memberNo;
	}
	public void setMemberNo(String memberNo) {
		this.memberNo = memberNo;
	}
	@JsonIgnore
	public void setOrderdetails(Set<OrderDetails> orderdetails) {
		this.orderdetails = orderdetails;
	}
	public Set<OrdDinTabRel> getOrdDinTabRel() {
		return ordDinTabRel;
	}
	@JsonIgnore
	public void setOrdDinTabRel(Set<OrdDinTabRel> ordDinTabRel) {
		this.ordDinTabRel = ordDinTabRel;
	}
	public long getOrderHeaderId() {
		return orderHeaderId;
	}
	public void setOrderHeaderId(long orderHeaderId) {
		this.orderHeaderId = orderHeaderId;
	}
	public String getDocumentNumber() {
		return documentNumber;
	}
	public void setDocumentNumber(String documentNumber) {
		this.documentNumber = documentNumber;
	}
	public String getDiningTableName() {
		return diningTableName;
	}
	public void setDiningTableName(String diningTableName) {
		this.diningTableName = diningTableName;
	}
	public java.util.Date getOrderDate() {
		return orderDate;
	}
	public void setOrderDate(java.util.Date orderDate) {
		this.orderDate = orderDate;
	}
	public double getOrderTotalPrice() {
		return orderTotalPrice;
	}
	public void setOrderTotalPrice(double orderTotalPrice) {
		this.orderTotalPrice = orderTotalPrice;
	}
	public int getAmount() {
		return amount;
	}
	public void setAmount(int amount) {
		this.amount = amount;
	}
	public String getAttn() {
		return attn;
	}
	public void setAttn(String attn) {
		this.attn = attn;
	}
	public String getDeliveryAddress() {
		return deliveryAddress;
	}
	public void setDeliveryAddress(String deliveryAddress) {
		this.deliveryAddress = deliveryAddress;
	}
	public String getWaiterNumber() {
		return waiterNumber;
	}
	public void setWaiterNumber(String waiterNumber) {
		this.waiterNumber = waiterNumber;
	}
	public double getActualTotalPrice() {
		return actualTotalPrice;
	}
	public void setActualTotalPrice(double actualTotalPrice) {
		this.actualTotalPrice = actualTotalPrice;
	}
	public long getServiceType() {
		return serviceType;
	}
	public void setServiceType(long serviceType) {
		this.serviceType = serviceType;
	}
	public long getOrderCategory() {
		return orderCategory;
	}
	public void setOrderCategory(long orderCategory) {
		this.orderCategory = orderCategory;
	}
	
	public long getOrderStatus() {
		return orderStatus;
	}
	public void setOrderStatus(long orderStatus) {
		this.orderStatus = orderStatus;
	}
	public java.sql.Timestamp getMealTime() {
		return mealTime;
	}
	public void setMealTime(java.sql.Timestamp mealTime) {
		this.mealTime = mealTime;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}

	public long getMemberId() {
		return memberId;
	}

	public void setMemberId(long memberId) {
		this.memberId = memberId;
	}

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}
	
}
